﻿import flash.display.BitmapData;
import flash.filters.BlurFilter;
import flash.geom.Point;
/**
 * @author colin
 */
class com.mixmedia.utils.Effect {
	public static function blurStage(mc:MovieClip,depth:Number){
		if(depth==undefined)depth = 1500;

		var screencap:BitmapData = new BitmapData(Stage.width,Stage.height);
		var filter = new BlurFilter(8,8,3);
		screencap.draw(_root);
		screencap.applyFilter(screencap,screencap.rectangle,new Point(0,0),filter);
		mc.attachBitmap(screencap,depth);
	}
}